Explicitly delete xc instance, which will hopefully solve the intermittent
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 21 Oct 2005 14:31:51 +0000 (15:31 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 21 Oct 2005 14:31:51 +0000 (15:31 +0100)
failure to start up.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/server/SrvDaemon.py

index c451071bee503bc2240535cdc6238c69af10ad4a..80e2d0eb8be05409385fccdb1dc9fa6f8d1bc719 100644 (file)
@@ -271,8 +271,10 @@ class Daemon:
         try:
             log.info("Xend Daemon started")
 
-            xinfo = xen.lowlevel.xc.new().xeninfo()
+            xc = xen.lowlevel.xc.new()
+            xinfo = xc.xeninfo()
             log.info("Xend changeset: %s.", xinfo['xen_changeset'])
+            del xc
 
             event.listenEvent(self)
             relocate.listenRelocation()